package com.hightrast.service.compareToData.stage.impl;

import com.hightrast.service.api.entity.RastOrderProductRefundItems;
import com.hightrast.service.compareToData.stage.EntityUpdater;
import com.hightrast.service.util.BaseEntityUtil;

/**
 *  订单商品退款项 更新策略实现
 */
public class RastOrderProductItemRefundUpdater implements EntityUpdater<RastOrderProductRefundItems> {
    @Override
    public void updateEntity(RastOrderProductRefundItems oldEntity, RastOrderProductRefundItems newEntity) {

        oldEntity.setQuantity(newEntity.getQuantity());
        oldEntity.setStatus(newEntity.getStatus());
        oldEntity.setSubtotal(newEntity.getSubtotal());
        oldEntity.setLineItemId(newEntity.getLineItemId());
        BaseEntityUtil.update(oldEntity);
    }
}